package com.backend_pay.controller.type;

import com.backend_pay.entity.TypeIncome;
import com.backend_pay.service.TypeIncomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller //控制层，展示层
public class TypeIncomeController {
    @Autowired
    TypeIncomeService typeIncomeService;

    @GetMapping(value = "/findAllIncomeType")
    @ResponseBody
    public List<TypeIncome> findAllType(){
        return typeIncomeService.findAllType();
    }
}
